gtk4.git
4 years agoRevert "gsk: Pass font options along"
Matthias Clasen [Sat, 4 Sep 2021 18:51:54 +0000 (14:51 -0400)]
Revert "gsk: Pass font options along"

This reverts commit 299c7c35148e49369c151aa4eae6066d09e9d4b4.

4 years agoRevert "gtk: Pass font options along"
Matthias Clasen [Sat, 4 Sep 2021 18:51:41 +0000 (14:51 -0400)]
Revert "gtk: Pass font options along"

This reverts commit 062a15310aefd7feac19a5b7d2c3257d317dfff9.

4 years agoUpdate Korean translation
Changwoo Ryu [Sat, 4 Sep 2021 09:02:48 +0000 (09:02 +0000)]
Update Korean translation

4 years agoUpdate Korean translation
Changwoo Ryu [Sat, 4 Sep 2021 08:59:22 +0000 (08:59 +0000)]
Update Korean translation

(cherry picked from commit 0a5af7693251f02b39bb73208f58609bbd2c8fb8)

4 years agoUpdate Swedish translation
Anders Jonsson [Fri, 3 Sep 2021 22:59:22 +0000 (22:59 +0000)]
Update Swedish translation

(cherry picked from commit 2dbcad428a57bac6521600267fa2d374628e2293)

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 3 Sep 2021 18:16:33 +0000 (18:16 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

widget: Redraw when font options change

See merge request GNOME/gtk!3917

4 years agowidget: Redraw when font options change
Matthias Clasen [Fri, 3 Sep 2021 17:55:39 +0000 (13:55 -0400)]
widget: Redraw when font options change

Its the right thing to do, even if it is a rare event.

4 years agoMerge branch 'small-text-fixes' into 'master'
Matthias Clasen [Fri, 3 Sep 2021 17:21:08 +0000 (17:21 +0000)]
Merge branch 'small-text-fixes' into 'master'

gsk: Pass font options down

See merge request GNOME/gtk!3908

4 years agogtk: Pass font options along
Matthias Clasen [Fri, 3 Sep 2021 11:21:15 +0000 (07:21 -0400)]
gtk: Pass font options along

Pass the widget's font options along when we
are creating text nodes.

4 years agogsk: Pass font options along
Matthias Clasen [Fri, 3 Sep 2021 11:19:36 +0000 (07:19 -0400)]
gsk: Pass font options along

Use the font options from the text node when
looking up glyphs.

4 years agogsk: Add font options to the glyph cache
Matthias Clasen [Wed, 1 Sep 2021 03:01:43 +0000 (23:01 -0400)]
gsk: Add font options to the glyph cache

The cairo_t that we create to render glyphs for
the glyph cache needs to match the font options
that are supposedly governing how glyphs are
drawn.

Since we allow font options to be different per
widget in gtk, we need to have them at least at
the level of individual render nodes. Adding them
to the lookup key for the glyph cache has the
side effect of solving another problem: We are
not flushing the cache when font options change.

4 years agogsk: Add font options to text nodes
Matthias Clasen [Fri, 3 Sep 2021 11:15:52 +0000 (07:15 -0400)]
gsk: Add font options to text nodes

Since font options affect how the glyphs get rendered,
we need to pass the font options down from the gtk level
to where the glyph cache is populated.

Add a new gsk_text_node_new_full api that takes a
cairo_font_options_t in addition to the other parameters.

4 years agogtk-demo: Improve the font rendering demo
Matthias Clasen [Fri, 3 Sep 2021 04:19:17 +0000 (00:19 -0400)]
gtk-demo: Improve the font rendering demo

Add a toggle for antialiasing, and make the metrics
hinting turn on rounding of positions, to match what
we do with settings now.

4 years agoMerge branch 'wip/exalm/buttons' into 'master'
Matthias Clasen [Fri, 3 Sep 2021 14:49:09 +0000 (14:49 +0000)]
Merge branch 'wip/exalm/buttons' into 'master'

Allow custom children on GtkMenuButton

Closes #4205

See merge request GNOME/gtk!3904

4 years agomenubutton: Support custom children
Alexander Mikhaylenko [Fri, 3 Sep 2021 11:18:06 +0000 (16:18 +0500)]
menubutton: Support custom children

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4205

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 3 Sep 2021 00:55:45 +0000 (00:55 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Add a README in gtk/compose

See merge request GNOME/gtk!3916

4 years agoAdd a README in gtk/compose
Matthias Clasen [Fri, 3 Sep 2021 00:10:19 +0000 (20:10 -0400)]
Add a README in gtk/compose

4 years agoMerge branch 'wip/smcv/transparent-is-transparent' into 'master'
Matthias Clasen [Thu, 2 Sep 2021 22:19:27 +0000 (22:19 +0000)]
Merge branch 'wip/smcv/transparent-is-transparent' into 'master'

reftest-compare: Treat colour channels as undefined if alpha is zero

Closes #4227

See merge request GNOME/gtk!3914

4 years agoreftest-compare: Treat colour channels as undefined if alpha is zero
Simon McVittie [Thu, 2 Sep 2021 21:34:14 +0000 (22:34 +0100)]
reftest-compare: Treat colour channels as undefined if alpha is zero

If the alpha channel is zero, it doesn't matter what the values of the
red, green and blue channels are: the pixel is still fully transparent.
On most architectures, fully transparent pixels end up all-zeroes
(fully transparent black), matching what's in the reference PNG file;
but on mips*el the blend-difference and blend-normal tests get all-ones
(fully transparent white) and a test failure.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4227
Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agoUpdate Finnish translation
Jiri Grönroos [Thu, 2 Sep 2021 16:06:39 +0000 (16:06 +0000)]
Update Finnish translation

(cherry picked from commit 33a4ae12ef268a399d0dad0b205dd87f501b14da)

4 years agoUpdated Lithuanian translation
Aurimas Černius [Thu, 2 Sep 2021 10:51:39 +0000 (13:51 +0300)]
Updated Lithuanian translation

4 years agoMerge branch 'fix-gst-subproject' into 'master'
Matthias Clasen [Thu, 2 Sep 2021 01:33:06 +0000 (01:33 +0000)]
Merge branch 'fix-gst-subproject' into 'master'

media: Check for gstreamer verion instead of using cc.links()

See merge request GNOME/gtk!3910

4 years agoMerge branch 'hint-metrics-setting' into 'master'
Matthias Clasen [Wed, 1 Sep 2021 23:15:50 +0000 (23:15 +0000)]
Merge branch 'hint-metrics-setting' into 'master'

Add a gtk-hint-font-metrics setting

See merge request GNOME/gtk!3912

4 years agoUpdate settings tests
Matthias Clasen [Wed, 1 Sep 2021 21:16:08 +0000 (17:16 -0400)]
Update settings tests

We have a new setting, so the test that is counting
settings needs an update.

4 years agoAdd a gtk-hint-font-metrics setting
Matthias Clasen [Wed, 1 Sep 2021 19:17:53 +0000 (15:17 -0400)]
Add a gtk-hint-font-metrics setting

This lets people switch back to font rendering that is closer
to what GTK 3 does. It is not perfect - subpixel antialiasing
is not going to work. But it give us an Escape hatch while
we shake out the bugs in our linear layout.

Related: #3787

4 years agoMerge branch 'color-glyph-info' into 'master'
Matthias Clasen [Wed, 1 Sep 2021 16:59:38 +0000 (16:59 +0000)]
Merge branch 'color-glyph-info' into 'master'

Use color glyph information from Pango

See merge request GNOME/gtk!3909

4 years agomedia: Check for gstreamer verion instead of using cc.links()
Xavier Claessens [Wed, 1 Sep 2021 12:08:43 +0000 (08:08 -0400)]
media: Check for gstreamer verion instead of using cc.links()

This fix error when gstgl_dep comes from a subproject because in that
case it cannot be used in compiler checks.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 1 Sep 2021 15:06:26 +0000 (15:06 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Initial support for new Pango attributes

See merge request GNOME/gtk!3911

4 years agoInitial support for new Pango attributes
Matthias Clasen [Wed, 1 Sep 2021 14:32:45 +0000 (10:32 -0400)]
Initial support for new Pango attributes

This is still missing the GtkTextTag hookup,
but it fixes the build.

4 years agoUpdate Persian translation
Danial Behzadi [Wed, 1 Sep 2021 09:42:39 +0000 (09:42 +0000)]
Update Persian translation

4 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 1 Sep 2021 09:02:13 +0000 (11:02 +0200)]
Updated Spanish translation

4 years agoUse color glyph information from Pango
Matthias Clasen [Wed, 1 Sep 2021 05:38:44 +0000 (01:38 -0400)]
Use color glyph information from Pango

Pango now sets a bit in PangoGlyphVisAttr for
color glyphs, so we don't need to do that
ourselves anymore.

4 years agoUpdate Dutch translation
Nathan Follens [Tue, 31 Aug 2021 15:54:45 +0000 (15:54 +0000)]
Update Dutch translation

(cherry picked from commit 9aa08dd1b8b633990ac73efb76d9524f7ded32dc)

4 years agoUpdate Persian translation
eshagh shahidani [Tue, 31 Aug 2021 14:41:54 +0000 (14:41 +0000)]
Update Persian translation

(cherry picked from commit 7691c94a3732e0349a4c868982159f613d6222dc)

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 31 Aug 2021 13:15:47 +0000 (13:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

editable: Clarify the docs

See merge request GNOME/gtk!3906

4 years agoeditable: Clarify the docs
Matthias Clasen [Tue, 31 Aug 2021 12:41:45 +0000 (08:41 -0400)]
editable: Clarify the docs

Make it clear that your class must have all the editable properties
already before you call the (confusingly named) function
gtk_editable_install_properties.

4 years agoMerge branch 'default-settings-non-debug' into 'master'
Matthias Clasen [Mon, 30 Aug 2021 18:09:28 +0000 (18:09 +0000)]
Merge branch 'default-settings-non-debug' into 'master'

Revert "reftests: Enforce default settings"

See merge request GNOME/gtk!3903

4 years agogdk: Make GDK_DEBUG=default-settings unconditional
Matthias Clasen [Mon, 30 Aug 2021 15:01:55 +0000 (11:01 -0400)]
gdk: Make GDK_DEBUG=default-settings unconditional

Our tests use this settings, so we should respect it
in non-debug builds as well.

4 years agoRevert "reftests: Enforce default settings"
Matthias Clasen [Mon, 30 Aug 2021 15:01:22 +0000 (11:01 -0400)]
Revert "reftests: Enforce default settings"

This reverts commit 4e4f57e091020750d66134c212d7778c17d96c20.

This should not be necessary, since we have GDK_DEBUG=default-settings.

4 years agoMerge branch 'wip/smcv/compose-files' into 'master'
Matthias Clasen [Mon, 30 Aug 2021 12:52:54 +0000 (12:52 +0000)]
Merge branch 'wip/smcv/compose-files' into 'master'

Fix Compose handling on big-endian host architectures

Closes #4217

See merge request GNOME/gtk!3902

4 years agocompose: Update sequences from libX11 1.7.2
Simon McVittie [Mon, 30 Aug 2021 09:54:43 +0000 (10:54 +0100)]
compose: Update sequences from libX11 1.7.2

This adds support for sequences like <Compose>,G,u -> capital G with
breve. Previously, only a capital U was accepted for E, G, I and O
(but a lower-case u was accepted for A and U for some reason).

Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agocompose: Document how to get compose-parse input from libX11 source
Simon McVittie [Mon, 30 Aug 2021 09:48:49 +0000 (10:48 +0100)]
compose: Document how to get compose-parse input from libX11 source

Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agocompose: Generate endian-dependent compact Compose data
Simon McVittie [Mon, 30 Aug 2021 09:13:33 +0000 (10:13 +0100)]
compose: Generate endian-dependent compact Compose data

The GtkComposeTable cache is always in big-endian format and is
byteswapped on load for the more common little-endian CPUs, but
init_builtin_table() in GtkIMContextSimple can't byteswap the built-in
data without copying it, which is undesirable. Pregenerate both big-
and little-endian compose data, and compile the correct flavour into
each build of GTK. This fixes failure of the composetable test when
building for a big-endian architecture such as s390x and (traditional,
big-endian) powerpc.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4217
Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 04:37:49 +0000 (04:37 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

fontbutton: Make sure the window is on the same display

See merge request GNOME/gtk!3901

4 years agocontentdeserializer: Fix some API awkwardness
Benjamin Otte [Mon, 23 Aug 2021 05:06:37 +0000 (07:06 +0200)]
contentdeserializer: Fix some API awkwardness

Allow uninitialized GValues to be passed. Makes life easier for the
inspector code I'm writing.

4 years agonode-editor: Allow dragging and dropping the center picture
Benjamin Otte [Fri, 20 Aug 2021 03:52:54 +0000 (05:52 +0200)]
node-editor: Allow dragging and dropping the center picture

Dragging will just drag the render node.

Dropping will replace the current contents of the textview with the
dropped node.

Neat side effect: You can drag the node onto itself to do a
deserialize/serialize of the current text.

4 years agorecorder: Make the render nodes in the list draggable
Benjamin Otte [Fri, 20 Aug 2021 03:52:10 +0000 (05:52 +0200)]
recorder: Make the render nodes in the list draggable

You can (soon) drag any of the nodes directly into the node-editor.

4 years agodragicon: Add a default drag icon for GskRenderNode
Benjamin Otte [Fri, 20 Aug 2021 03:51:20 +0000 (05:51 +0200)]
dragicon: Add a default drag icon for GskRenderNode

Somebody should make this default drag icon machinery pluggable.

4 years agorendernode: Add (de)serialization support for render nodes
Benjamin Otte [Thu, 19 Aug 2021 22:30:04 +0000 (00:30 +0200)]
rendernode: Add (de)serialization support for render nodes

This includes our own new mime type for render nodes, too.

4 years agorendernode: Add GValue functions for render nodes
Benjamin Otte [Thu, 19 Aug 2021 21:36:16 +0000 (23:36 +0200)]
rendernode: Add GValue functions for render nodes

This is needed as GskRenderNode is its own fundamental type and has its
own GValue infrastructure. And I want to put render nodes into the
clipboard which uses GValues.

4 years agostylecontext: Remove unneeded headers
Benjamin Otte [Mon, 23 Aug 2021 05:06:25 +0000 (07:06 +0200)]
stylecontext: Remove unneeded headers

4 years agofontbutton: Destroy dialog in unrealize()
Benjamin Otte [Mon, 23 Aug 2021 03:55:56 +0000 (05:55 +0200)]
fontbutton: Destroy dialog in unrealize()

This way, we can be sure it's always using the right display.

We can also be sure that it doesn't leak.

4 years agofontbutton: Make sure the window is on the same display
Benjamin Otte [Mon, 23 Aug 2021 03:55:32 +0000 (05:55 +0200)]
fontbutton: Make sure the window is on the same display

We don't want the font buttons created by the inspector to run on the
default display.

4 years agoMerge branch 'wip/otte/symbolic-paintable' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 03:54:35 +0000 (03:54 +0000)]
Merge branch 'wip/otte/symbolic-paintable' into 'master'

Add GtkSymbolicPaintable

See merge request GNOME/gtk!3895

4 years agoMerge branch 'wip/otte/G_TYPE_POINTER' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 03:50:30 +0000 (03:50 +0000)]
Merge branch 'wip/otte/G_TYPE_POINTER' into 'master'

Get rid of G_TYPE_POINTER

See merge request GNOME/gtk!3900

4 years agosymbolicpaintable: Refactor default colors path
Benjamin Otte [Mon, 30 Aug 2021 02:56:43 +0000 (04:56 +0200)]
symbolicpaintable: Refactor default colors path

4 years agoicontheme: Refactor gtk_icon_theme_lookup_symbolic_colors()
Benjamin Otte [Mon, 30 Aug 2021 02:52:47 +0000 (04:52 +0200)]
icontheme: Refactor gtk_icon_theme_lookup_symbolic_colors()

With the new enum, the code looks much cleaner.

4 years agoenums: Add a GtkSymbolicColor enum
Benjamin Otte [Mon, 30 Aug 2021 02:32:22 +0000 (04:32 +0200)]
enums: Add a GtkSymbolicColor enum

That way we don't nedmagic numbres to index the colors array.

Use it in the symbolic paintable demo.

4 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 17:08:32 +0000 (17:08 +0000)]
Update Kazakh translation

(cherry picked from commit 37d2d407a192fc14df211ea57a788ffe3fd16762)

4 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 07:41:36 +0000 (07:41 +0000)]
Update Kazakh translation

(cherry picked from commit 9e62fd82ea130b4eca052bf1313910c44a221b7e)

4 years agosearchengine: Rename private headers
Benjamin Otte [Sun, 29 Aug 2021 04:10:31 +0000 (06:10 +0200)]
searchengine: Rename private headers

The code uses G_TYPE_POINTER and I got all sorts of scared.

4 years agofilesystemmodel: Don't use G_TYPE_POINTER
Benjamin Otte [Sun, 29 Aug 2021 03:56:31 +0000 (05:56 +0200)]
filesystemmodel: Don't use G_TYPE_POINTER

It's a GError, use G_TYPE_ERROR.

4 years agoplacessidebar: Don't use G_TYPE_POINTER
Benjamin Otte [Sun, 29 Aug 2021 02:48:49 +0000 (04:48 +0200)]
placessidebar: Don't use G_TYPE_POINTER

We have a type for lists of GFiles. We invented it for DND.

Keep the annotation info, so bindings don't have to know this.

4 years agopathbar: Use correct GType in signal
Benjamin Otte [Sun, 29 Aug 2021 02:47:50 +0000 (04:47 +0200)]
pathbar: Use correct GType in signal

4 years agogtk-demo: Add a symbolic paintable demo
Benjamin Otte [Sat, 28 Aug 2021 01:46:55 +0000 (03:46 +0200)]
gtk-demo: Add a symbolic paintable demo

Don't click the button!

4 years agogtk-demo: Explicitly pass nuclear icon colors
Benjamin Otte [Fri, 27 Aug 2021 21:44:42 +0000 (23:44 +0200)]
gtk-demo: Explicitly pass nuclear icon colors

4 years agogtk: Port icontheme to GtkSymbolicPaintable
Benjamin Otte [Fri, 27 Aug 2021 22:23:29 +0000 (00:23 +0200)]
gtk: Port icontheme to GtkSymbolicPaintable

4 years agogtk: Add the GtkSymbolicPaintable interface
Benjamin Otte [Fri, 27 Aug 2021 21:33:56 +0000 (23:33 +0200)]
gtk: Add the GtkSymbolicPaintable interface

4 years agobuild: Check that introspection is enabled for docs build
Benjamin Otte [Sun, 29 Aug 2021 00:47:34 +0000 (02:47 +0200)]
build: Check that introspection is enabled for docs build

4 years agodocs: Fix vfunc references
Benjamin Otte [Sun, 29 Aug 2021 02:27:58 +0000 (04:27 +0200)]
docs: Fix vfunc references

vfunc references should just use the object name, not the
class/interface/iface name.

4 years agoMerge branch 'text-selection-missing' into 'master'
Matthias Clasen [Sat, 28 Aug 2021 21:21:02 +0000 (21:21 +0000)]
Merge branch 'text-selection-missing' into 'master'

ngl: Avoid a coordinate overflow

Closes #4214

See merge request GNOME/gtk!3897

4 years agongl: Avoid a coordinate overflow
Matthias Clasen [Sat, 28 Aug 2021 19:42:30 +0000 (15:42 -0400)]
ngl: Avoid a coordinate overflow

This was showing up as big text selections going
missing sporadically.

Fixes: #4214
4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 28 Aug 2021 17:18:21 +0000 (17:18 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Draw negatively sloped carets correctly

See merge request GNOME/gtk!3892

4 years agoMerge branch 'menu-accel' into 'master'
Matthias Clasen [Sat, 28 Aug 2021 17:17:43 +0000 (17:17 +0000)]
Merge branch 'menu-accel' into 'master'

window: Prefer menu bars when handling F10

See merge request GNOME/gtk!3893

4 years agoMerge branch 'randr' into 'master'
Matthias Clasen [Sat, 28 Aug 2021 17:17:00 +0000 (17:17 +0000)]
Merge branch 'randr' into 'master'

x11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events

See merge request GNOME/gtk!3894

4 years agox11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events
Ian Douglas Scott [Sat, 28 Aug 2021 00:57:01 +0000 (17:57 -0700)]
x11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events

It seems these are sent with `xwindow` set to the root window, so this
was failing to find a surface and get the screen from that.

I'm not sure if there's a reason not to get the screen this way
elsewhere in the function, but it seems this should be correct.

This fixes the behavior of `gdk_x11_display_get_monitors()`, which
wasn't correctly changing when monitors were added or removed. For
instance, this python code was always showing the same number of
monitors when one was turned off and on, but updates correctly with this
change applied:

```python
import gi
gi.require_version("GLib", "2.0")
gi.require_version("Gdk", "4.0")
gi.require_version("Gtk", "4.0")
from gi.repository import GLib, Gdk, Gtk

def f():
    print(len(Gdk.Display.get_default().get_monitors()))
    return True
GLib.timeout_add_seconds(1, f)

GLib.MainLoop().run()
```

4 years agoUpdate Brazilian Portuguese translation
Enrico Nicoletto [Sat, 28 Aug 2021 01:00:26 +0000 (01:00 +0000)]
Update Brazilian Portuguese translation

(cherry picked from commit cd9735eab134810b8d7182f1f1bca86b27207514)

4 years agoUpdate Brazilian Portuguese translation
Enrico Nicoletto [Sat, 28 Aug 2021 00:44:25 +0000 (00:44 +0000)]
Update Brazilian Portuguese translation

(cherry picked from commit 8f5a1471cc3227e91dbb5b3d2c47f7c999d74201)

4 years agowindow: Prefer menu bars when handling F10
Florian Müllner [Fri, 27 Aug 2021 22:10:00 +0000 (00:10 +0200)]
window: Prefer menu bars when handling F10

Focusing the first widget in the titlebar is a good fallback,
but a "real" menubar or :primary menu button should take
precedence.

4 years agoDraw negatively sloped carets correctly
Matthias Clasen [Fri, 27 Aug 2021 21:19:04 +0000 (17:19 -0400)]
Draw negatively sloped carets correctly

The code for handling negatively sloped caret
positions was not tested, and naturally did
not work. Fix it.

4 years agoMerge branch 'css-line-decoration' into 'master'
Matthias Clasen [Fri, 27 Aug 2021 01:37:57 +0000 (01:37 +0000)]
Merge branch 'css-line-decoration' into 'master'

textview: Apply line decoration from css

See merge request GNOME/gtk!3890

4 years agoClean up the code
Matthias Clasen [Fri, 27 Aug 2021 00:45:17 +0000 (20:45 -0400)]
Clean up the code

Avoid compiler warnings, and make the code
a bit more compact.

4 years agotextview: Apply font features from css
Matthias Clasen [Fri, 27 Aug 2021 00:21:23 +0000 (20:21 -0400)]
textview: Apply font features from css

We were forgetting to propagate these values from
CSS to the default attributes. Share the code for
getting these values out of a GtkCssStyle.

4 years agotextview: Apply text transform from css
Matthias Clasen [Thu, 26 Aug 2021 22:53:30 +0000 (18:53 -0400)]
textview: Apply text transform from css

We were forgetting to propagate these values from
CSS to the default attributes.

4 years agotextview: Apply line decoration from css
Matthias Clasen [Thu, 26 Aug 2021 22:45:38 +0000 (18:45 -0400)]
textview: Apply line decoration from css

We were forgetting to propagate these values from
CSS to the default attributes.

4 years agoMerge branch 'css-letter-spacing' into 'master'
Matthias Clasen [Thu, 26 Aug 2021 19:37:55 +0000 (19:37 +0000)]
Merge branch 'css-letter-spacing' into 'master'

textview: Don't forget to collect css letterspacing

Closes #4207

See merge request GNOME/gtk!3889

4 years agotextview: Don't forget to collect css letterspacing
Matthias Clasen [Thu, 26 Aug 2021 19:01:23 +0000 (15:01 -0400)]
textview: Don't forget to collect css letterspacing

There are more properties missing, this is just
the start.

Fixes: #4207
4 years agoUpdate Indonesian translation
Andika Triwidada [Thu, 26 Aug 2021 14:40:03 +0000 (14:40 +0000)]
Update Indonesian translation

(cherry picked from commit 85ad1db8efaabace38cb9b37bfac1d729925b8ec)

4 years agoUpdate Portuguese translation
Hugo Carvalho [Thu, 26 Aug 2021 14:29:50 +0000 (14:29 +0000)]
Update Portuguese translation

(cherry picked from commit 6e467de751d83f3212d4e758b3d52abd555d5477)

4 years agoUpdate Portuguese translation
Hugo Carvalho [Thu, 26 Aug 2021 14:12:47 +0000 (14:12 +0000)]
Update Portuguese translation

(cherry picked from commit ae5b6395ade25da06da25157ed39e399db3a4061)

4 years agoUpdate Indonesian translation
Andika Triwidada [Thu, 26 Aug 2021 13:38:46 +0000 (13:38 +0000)]
Update Indonesian translation

(cherry picked from commit dcc899b6212aceca7c5687c6cd4a24214e84d27e)

4 years agoUpdated Czech translation
Marek Černocký [Thu, 26 Aug 2021 13:07:54 +0000 (15:07 +0200)]
Updated Czech translation

4 years agoMerge branch 'clang-fallthrough' into 'master'
Timm Bäder [Thu, 26 Aug 2021 11:15:28 +0000 (11:15 +0000)]
Merge branch 'clang-fallthrough' into 'master'

build: fix implicit-fallthrough errors with clang

See merge request GNOME/gtk!3887

4 years agoUpdate Catalan translation
Jordi Mas [Thu, 26 Aug 2021 11:10:32 +0000 (13:10 +0200)]
Update Catalan translation

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 26 Aug 2021 06:15:06 +0000 (06:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

More markup demos

See merge request GNOME/gtk!3888

4 years agobuild: fix implicit-fallthrough errors with clang
Christoph Reiter [Thu, 26 Aug 2021 03:14:18 +0000 (05:14 +0200)]
build: fix implicit-fallthrough errors with clang

The clang build fails due to -Werror=implicit-fallthrough being
on by default and some fallthrough cases not being marked as such.

Use G_GNUC_FALLTHROUGH or duplicate the code in those cases.

4 years agoMore markup demos
Matthias Clasen [Wed, 25 Aug 2021 23:38:59 +0000 (19:38 -0400)]
More markup demos

Showing more of what Pango can do.

4 years agoMerge branch 'new-pango-attributes' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 20:11:45 +0000 (20:11 +0000)]
Merge branch 'new-pango-attributes' into 'master'

Support new pango attributes

See merge request GNOME/gtk!3878

4 years agoMerge branch 'treeexpander-claim-gestures' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 19:11:23 +0000 (19:11 +0000)]
Merge branch 'treeexpander-claim-gestures' into 'master'

GtkTreeExpander: claim expander-icon gestures

Closes #4199

See merge request GNOME/gtk!3886

4 years agotextview: Implement new pango attributes
Matthias Clasen [Tue, 24 Aug 2021 16:47:12 +0000 (12:47 -0400)]
textview: Implement new pango attributes

Implement the word and sentence attributes.